<template>
	<view>
		<view v-for="(item, index) in datalist" :key="index" style="margin: 10rpx;">
			<CustomTextView 
			:title="item.title" 
			:isTop="item.isTop" 
			:author="item.author" 
			:count="item.comments"
			:date="item.time">
			</CustomTextView>
		</view>
	</view>

</template>

<script>
	import CustomTextView from "../../components/cardViewText.vue"
	export default {
		components: {
			CustomTextView
		},
		
		data() {
			return {
				datalist: [{
						title: "十五运会火炬传递11月2日举行 路线公布",
						isTop: true,
						author: "央视新闻",
						comments: 2189690,
						time: "2025.10.07"
					},
					{
						title: "【学习贯彻党的二十届四中全会精神】为基本实现社会主义现代化而接续奋斗",
						isTop: false,
						author: "央视网",
						comments: 1025223,
						time: "2025.10.26"
					},
					{
						title: "故宫博物院百年守护展：一脉文渊，守望相传",
						isTop: true,
						author: "新华社",
						comments: 1433000,
						time: "2025.10.28"
					},
					{
						title: "绿色生活好市民代表走进天坛，寻觅低碳生活奥秘",
						isTop: false,
						author: "北京日报",
						comments: 1677823,
						time: "2025.10.26"
					},
				]
			}
		},
		methods: {}
	}
</script>

	
<style>
	
</style>